<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" th:href="@{/styles.css}">
    <title>登录</title>
</head>
<body>
<div class="box">


    <h1>登录</h1>
    <form th:action="@{/login}" method="post">
        <div class="inbox">
            <label for="username"> <strong>账号</strong></label>
            <input type="text" name="username" id="username" placeholder="请输入用户名"/>
        </div>

        <div class="inbox">
            <label for="key"><strong>密码</strong></label>
            <input name="password" type="password" id="key" placeholder="请输入密码"/>
        </div>
        <button class="but1" type="submit">登录</button>
        <!--<button class="but2" type="button" onclick="document.getElementById('reg_form').submit();">注册</button>-->
    </form>
    <form id="reg_form" th:action="@{/register}" method="get">

    </form>


</div>
</body>
</html>